package com.example.shop.fgo.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by Administrator on 2017/2/11.
 */

public class TimeUtil {
    private static SimpleDateFormat mSimpleDateFormatInS=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
    private static SimpleDateFormat mSimpleDateFormatNYR=new SimpleDateFormat("yyyy-MM-dd");
    private  static Date date=new Date();
    public  static String formatTimeInS(long timeInS){
        date.setTime(timeInS*1000);
        return mSimpleDateFormatInS.format(date);
    }
    public  static String formatTimeNYR(long timeInS){
        date.setTime(timeInS*1000);
        return mSimpleDateFormatNYR.format(date);
    }
}
